﻿namespace LowCoding.Common
{
    public static class ExceptionExtensions
    {
        public static void ToErrorLog(this Exception ex)
        {
            LogHelper.WriteErrorLog(ex);
        }

        public static void ToErrorLog(this Exception ex, string title)
        {
            LogHelper.WriteErrorLog(title + "<--->" + ex.ToString());
        }

        public static void ToInfoLog(this string obj)
        {
            LogHelper.WriteLog(obj);
        }

        public static void ToInfoLog(this string obj, string title)
        {
            LogHelper.WriteLog(title + "<--->" + obj);
        }
    }
}